<template>
  <view class="page">
    <up-parse :content="desc" />
  </view>
</template>

<script setup lang="ts">
import { ref } from 'vue'
import { onLoad } from '@dcloudio/uni-app'
import { normInfo } from '@/api/home'

const desc = ref()

onLoad(async (option: any) => {
  const pageId = uni.getStorageSync('pageId')
  const res = await normInfo({
    id: pageId,
    noticeid: option.id,
    normid: option.id
  })
  desc.value = res.data.desc
})
</script>

<style scoped>
.page {
  width: 98%;
  margin: 0 auto;
}
</style>
